package com.treasure.infrastructure.index;

import com.alibaba.dashscope.exception.NoApiKeyException;
import com.treasure.infrastructure.model.FileSegmentBean;
import com.treasure.common.model.UploadDocumentRequest;

import java.io.IOException;
import java.util.List;

/**
 * @author sunhongmin
 * @date 2023/8/25 20:11
 * @description
 */
public interface IndexDocHandler {

    IndexDocTypeEnum getIndexDocType();

    void indexResourceSegment(String organizationCode, List<String> resourcePaths) throws IOException, NoApiKeyException;

    void indexResourceSegment(UploadDocumentRequest uploadDocumentRequest, List<FileSegmentBean> fileSegmentBeanList) throws NoApiKeyException;
}
